package by.bsu.rfe.belianko.euniversity.controller.command;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;

import by.bsu.rfe.belianko.euniversity.constants.LoggerMessages;
import by.bsu.rfe.belianko.euniversity.constants.PageNames;

/**
 * The absence of the appropriate commands.
 * 
 * @author Vitali_Belianko
 * 
 */
public class NoCommand implements Command {

	private static final Logger LOGGER = Logger.getLogger(NoCommand.class);

	/**
	 * Called if the corresponding command is missing
	 * 
	 * @param request
	 * 
	 * @return no comand page
	 */
	@Override
	public String execute(HttpServletRequest request) {

		LOGGER.debug(LoggerMessages.STARTED_COMMAND);

		return PageNames.NO_COMMAND;
	}

}
